

import LayoutWithSidebar from '@/components/Layout/LayoutWithSidebar';
import LayoutWithoutSidebar from '@/components/Layout/LayoutWithoutSidebar';
import CommonView from '@/components/routerview';
// 组织相关

// 组织管理
const OrgManageHome= () => import('@/views/org/dept/manage/home/index.vue');
const OrgManageSort= () => import('@/views/org/dept/manage/sort/index.vue');


// 岗位管理
const JobManagement= () => import('@/views/org/job/job-management/index.vue');
const JobCategory= () => import('@/views/org/job/job-category/index.vue');
const JobDetail= () => import('@/views/org/job/job-detail/index.vue');



const org = {
    path: '/org',
    component: LayoutWithSidebar,
    redirect: "/org/dept",
    meta:{
      name:"组织"
    },
    children: [
      {
        path: 'dept',
        component: CommonView,
        redirect: "/org/dept/manage",
        meta:{
          name:"组织架构"
        },
        children: [
          {
            path: 'manage',
            component:CommonView,
            redirect: "/org/dept/manage/home",
            meta:{
              name:"组织管理"
            },
            children:[
              {
                path: 'home',
                component: OrgManageHome,
                meta:{
                  name:"排序"
                },
              },
              {
                path: 'sort',
                component: OrgManageSort,
                meta:{
                  name:"排序"
                },
              }
            ]
          },
          {
            path: 'sort',
            component: OrgManageSort,
            meta:{
              name:"排序"
            },
          }
        
        ]
      },
      {
        path: 'job',
        component: CommonView,
        redirect: "/org/job/job-management",
        meta:{
          name:"组织管理"
        },
        children: [
          {
            path: 'job-management',
            component:JobManagement,
            meta:{
              name:"岗位管理"
            },
          },
          {
            path: 'job-category',
            component:JobCategory,
            meta:{
              name:"岗位类别"
            },
          },
          {
            path: 'job-detail',
            component:JobDetail,
            meta:{
              name:"岗位详情"
            },
          },
        
        ]
      }
    ],
   
  }

export default org;